package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsMapper;
import com.qf.pojo.DtsGoods;
import com.qf.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 邢式瑞
 * @version 1.0
 * @project E-commercebackGroundManagementSystem
 * @date 2022/9/21 10:32
 */
@Service
public class GoodsServiceImpl  implements GoodsService {
    @Autowired
    private DtsGoodsMapper goodsMapper;
    @Override
    public long selectCount() {
        return goodsMapper.selectCount(new QueryWrapper<DtsGoods>().eq("deleted", false));
    }
}
